Skip to content

Add native support chat#461

Merged
DRadmir merged 13 commits into
mainfrom
native-support-chat-v2
Jun 12, 2026
Merged

Add native support chat#461
DRadmir merged 13 commits into
mainfrom
native-support-chat-v2

Conversation

@DRadmir

@DRadmir DRadmir commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Replaces the support WebView with a native chat. Users can send text and images, see delivery status, and retry failed messages.

Simulator Screenshot - iPhone Air - 2026-06-12 at 21 37 02 Simulator Screenshot - iPhone Air - 2026-06-12 at 21 37 15

Replace the Chatwoot support WebView with a native chat across the stack:
- core: Chatwoot widget client, support message/image endpoints, support primitives and stream event
- iOS: chat scene with text and image messages, optimistic send with retry, local image cache, GRDB store
- Android: support API client methods and stream handler
@DRadmir DRadmir self-assigned this Jun 4, 2026
gemcoder21 and others added 6 commits June 4, 2026 18:45
…port-chat-v2

# Conflicts:
#	core/crates/support/src/chatwoot.rs
#	core/crates/support/src/client.rs
# Conflicts:
#	android/gemcore/src/main/kotlin/com/wallet/core/primitives/generated/Support.kt
#	core/crates/primitives/src/support.rs
#	core/crates/support/src/chatwoot.rs
#	core/crates/support/src/model.rs
#	core/crates/support/tests/model_tests.rs
#	ios/Packages/GemAPI/TestKit/GemAPISupportService+TestKit.swift
#	ios/Packages/Primitives/Sources/Generated/Support.swift
Replace the support WebView with a native SwiftUI chat: message bubbles, day separators, per-agent grouping, and image attachments. Add a scroll-to-bottom button with an unread-agent badge, backed by SupportChatService, a GRDB message store, and localization.
Tap a chat image to preview it full-screen via the native QuickLook modifier. Materialize images to local files in SupportChatService, reusing the URLCache the bubble already filled, and unify SupportImageStore for both uploads and preview caching. Make image bubbles buttons (retry when failed, open when sent) and trim surrounding whitespace from message text.
@gemcoder21 gemcoder21 marked this pull request as ready for review June 9, 2026 17:07
Comment thread ios/Packages/Store/Sources/Models/SupportMessageRecord.swift Outdated
DRadmir added 6 commits June 9, 2026 23:55
- Open chat images full-screen with QuickLook
- Resolve image URLs via local upload fast-path with server fallback
- Add loading indicator and fix image tap hit area
- Fix empty-state layout and keyboard dismissal after first send
- Cover day grouping and unread watermark with unit tests
Update support copy and add a message placeholder across Android and iOS localization files (changed empty-state text to an “Ask us anything” style and added support_message_placeholder in many locales). Refactor iOS Support feature: remove unused package dependencies from Package.swift, simplify target products, add SupportMessageContent, update SupportChatService and related models/views, and refactor SupportChatScene to a new ScrollView-based layout (several old view files and tests removed or renamed). Localization resources (.strings and .ftl) updated for multiple languages.
- Disable interactive sheet dismiss so drag-down no longer closes the chat
- Extend background behind the keyboard so no white gap shows under the input bar
@DRadmir DRadmir merged commit 8700812 into main Jun 12, 2026
6 checks passed
@DRadmir DRadmir deleted the native-support-chat-v2 branch June 12, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants